﻿//********************************************************************************************************
// Product Name: MapWindow.dll Alpha
// Description:  The basic module for MapWindow version 6.0
//********************************************************************************************************
// The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); 
// you may not use this file except in compliance with the License. You may obtain a copy of the License at 
// http://www.mozilla.org/MPL/ 
//
// Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF 
// ANY KIND, either expressed or implied. See the License for the specificlanguage governing rights and 
// limitations under the License. 
//
// The Original Code is from MapWindow.dll version 6.0
//
// The Initial Developer of this Original Code is Ted Dunsford. Created 4/6/2009 11:19:53 AM
// 
// Contributor(s): (Open source contributors should list themselves and their modifications here). 
//
//********************************************************************************************************

using System;
using System.ComponentModel;
using System.Collections.Generic;   
using System.Drawing;
using MapWindow.Components;
using MapWindow.Data;
using MapWindow.Drawing;
using MapWindow.Geometries;
using MapWindow.Main;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;


namespace MapWindow.DirectX
{
    /// <summary>
    /// Encapsulates the NumberRows and NumberColumns argument passed as input to the Time-consuming
    /// AddVertices() method which is running in a background thread
    /// </summary>
    public class RowColArgument
    {
        private int _numberCols;
        private int _numberRows;

        /// <summary>
        /// Creates a new instance of the RowColArgument
        /// </summary>
        /// <param name="numberRows"></param>
        /// <param name="numberCols"></param>
        public RowColArgument(int numberRows, int numberCols)
        {
            _numberCols = numberCols;
            _numberRows = numberRows;
        }

        /// <summary>
        /// The integer number of rows
        /// </summary>
        public int NumberRows
        {
            get { return _numberRows; }
            set { _numberRows = value; }             
        }

        /// <summary>
        /// The itneger number of columns
        /// </summary>
        public int NumberColumns
        {
            get { return _numberCols; }
            set { _numberCols = value; }
        }
    }
}